package o;

import android.content.res.ColorStateList;
import android.view.View;
import androidx.cardview.widget.CardView;
import java.lang.ref.WeakReference;

public class pn extends SkinAttr {

    static final class b extends fkz<SkinAttr, ColorStateList> {
        private WeakReference<CardView> ˋ;

        public /* synthetic */ void ॱ(Object obj) {
            ॱ((ColorStateList) obj);
        }

        private b(CardView cardView) {
            this.ˋ = new WeakReference(cardView);
        }

        public void ॱ(ColorStateList colorStateList) {
            CardView cardView = (CardView) this.ˋ.get();
            if (cardView != null) {
                foo.ॱ(cardView, colorStateList);
            }
        }
    }

    public pn() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof CardView) {
            CardView cardView = (CardView) view;
            if ("color_state_list".equals(this.attrValueTypeName) || "color".equals(this.attrValueTypeName)) {
                this.ʽ = "color_state_list";
                fks.ˎ(view.getContext(), this, new b(cardView)).ॱ(z);
            }
        }
    }
}
